﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>友情链接管理</title>
		<script>
$(document).ready(function(){

		$("#mobile").focus();
		$("#linksForm").validate({
			 rules: { 
				mobile: { 
        			required: true, 
        			maxlength:11
    			},
				phonePassword: { 
					required: true, 
					maxlength:8
				},
    			amount: { 
					required: true, 
					maxlength:10
				}
			},
			success: function(label) {
				label.html("&nbsp;").addClass("checked");
	        }	
		});
	});	

</script>
	</head>
	<body>
		<div class="rhead">
			<div class="rpos">
				当前位置: 业务管理 - 优惠充值订单 - 添加优惠充值订单
			</div>
			<div class="ropt"><input type="button" value="返回" onclick="history.back()"/></div>			
			<div class="clear"></div>
		</div>
		<form action="saleorderAction!add.action" method="post" id="linksForm">
			<table align="center" class="listTable3" width="90%">
				<tr>
					<td width="100px" class="pn-flabel">
						办理号码
					</td>
					<td>
						<input type="text" class="putMobile" id="custsimno"
								name="mobile" maxlength="11" />
					</td>
				</tr>

				<tr>
					<td class="pn-flabel">
						服务密码：
					</td>
					<td>
						<input type="text" class="putMobile" id="custsimno"
							name="phonePassword" maxlength="8" />
					</td>
				</tr>
				<tr>
					<td class="pn-flabel">
						优惠套餐
					</td>
					<td>
						<select id="payment" type="text" name="saleorder.saleType" onchange="changeAgentPayment(this)" style="width:210px;">
									<c:forEach items="${authoritiesList}" var="auth">
										<option value="${auth.id}">${auth.name}</option>
								</c:forEach>
						</select>
					</td>
				</tr>

				<tr>
					<td class="pn-flabel">
						代  理  价
					</td>
					<td>
						<input type="text" id="sameamount" name="amount"/>
					</td>
				</tr>
				<tr>
					<td class="pn-flabel">
						充值状态
					</td>
					<td>
						<select name="saleorder.phoneState">
							<option value="0">
								待办理
							</option>
							<option value="1">
								办理中
							</option>
							<option value="2">
								已成功
							</option>
							<option value="3">
								已失败
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td class="pn-flabel">
						付款状态
					</td>
					<td>
						<select name="saleorder.paymentState">
							<option value="1">
								已付款
							</option>
							<option value="0">
								未付款
							</option>
						</select>
					</td>
				</tr>
				<tr>
				<td class="pn-flabel">
					备注栏
				</td>
				<td>
					<input type="text" name="saleorder.comments" size="50"/>
				</td>
			</tr>
				<tr>
					<td class="pn-flabel">
						状态
					</td>
					<td>
						<select name="saleorder.state">
							<option value="1">
								已启用
							</option>
							<option value="0">
								已停用
							</option>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2" style="text-align:center">
						<input type="submit" value=" 提 交 " />
						<input type="button" value=" 返回 " onclick="history.back()" />
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>

